#ifndef HDTRACKINGWINDOW_H
#define HDTRACKINGWINDOW_H

#include <QtGui/QMainWindow>
#include "ui_hdtrackingwindow.h"

class HDTrackingWindow : public QMainWindow
{
	Q_OBJECT

public:
	HDTrackingWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
	~HDTrackingWindow();

protected:
	void keyPressEvent(QKeyEvent *event);
	void keyReleaseEvent(QKeyEvent * event);

private:
	Ui::HDTrackingWindowClass ui;

	private slots:
		void on_btnStart3DWorld_clicked();
		void on_sldMaxValue_sliderMoved(int);
		void on_sldMinValue_sliderMoved(int);
		void on_sldMaxSaturation_sliderMoved(int);
		void on_sldMinSaturation_sliderMoved(int);
		void on_sldMaxHue_sliderMoved(int);
		void on_sldMinHue_sliderMoved(int);

		void on_chkRectify_stateChanged(int);
		void on_chkEnableVal_stateChanged(int);
		void on_chkEnableSat_stateChanged(int);
		void on_chkEnableHue_stateChanged(int);

		void on_btnCapture_clicked();
		void on_btnCalibrate_toggled(bool);
		void on_btnSnap_clicked();
		void on_btnAddObject_clicked();
		void on_btnBackProj_clicked(bool enable);
		void on_btnHideWindow_clicked();
		void on_btnToggleDemo_toggled(bool);

		void on_cmbObjects_currentIndexChanged(int);

		void viewers_onFocusChanged(int index);

		void onCalibrationFinished();
		void onNew3DPointCalculated(float x, float y, float z);

		void on_pushButtons_LeftThumbToggled(bool);
		void on_pushButtons_RightThumbToggled(bool);

		void on_pushButtons_LeftIndexToggled(bool);
		void on_pushButtons_RightIndexToggled(bool);

		void on_pushButtons_LeftMiddleToggled(bool);
		void on_pushButtons_RightMiddleToggled(bool);

		void on_pushButtons_LeftRingToggled(bool);
		void on_pushButtons_RightRingToggled(bool);

};

#endif // HDTRACKINGWINDOW_H

